package com.wkbb.common.enums;

/**
 * @author luowenyan
 * @version V1.0
 * @className SmsTypeEnum
 * @description
 * @date 2019/8/7 10:17
 */
public enum SmsTypeEnum {
    /**
     * 个人中心
     */
    PERSONAL_CENTER(1,"个人中心"),

    FACESMSCODE(2,"人脸录入"),

    OTHER(9,"其他服务");

    private SmsTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SmsTypeEnum smsTypeEnum : SmsTypeEnum.values()) {
            if (smsTypeEnum.getValue().intValue()==value) {
                return smsTypeEnum.getDesc();
            }
        }
        return null;
    }
}
